#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Create by zhang
# Create on 2022/6/27 21:51
from domain.report.dto.cash_dto import CashSchema
from domain.report.extractor.base_filter import BaseFilter
from domain.report.common.extract_content_enum import ExtractContentEnum
from domain.report.extractor.request import TaskData


class ConsolidatedCashFilter(BaseFilter):
    start_titles = [
        "销售商品、提供劳务收到的现金", "附注"
    ]

    item_titles = []

    end_titles = [
        "六、期末现金及现金等价物余额"
    ]

    def __init__(self):
        super(ConsolidatedCashFilter, self).__init__()

    def init(self):
        self.extract_type = ExtractContentEnum.ConsolidatedCash
        self.exclude_type = []
        self.result = TaskData(name=self.extract_type.name)
        self.__class__.item_titles = CashSchema.get_all_titles()
